"""覆盖设置"""
build = 1
env = 'dev'
# env = 'test'
# env = 'prod'
# 业务参数
baseImgUrl = 'https://test.axh.service.higo8.top/'
MINIO_URL = '39.102.141.217:9090'
MINIO_access_key = 'admin'
MINIO_secret_key = 'admin123456'
if env == 'dev':
    ALLOWED_HOSTS = ['*']
    DEBUG = True

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': 'cedu_dev',
            'USER': 'root',
            'PASSWORD': '123456',
            'HOST': '127.0.0.1',
            'PORT': '3306',
            'OPTIONS': {
                'charset': 'utf8mb4',
                "init_command": "SET foreign_key_checks = 0;",
            }
        }
    }
elif env == 'test':
    """覆盖设置"""
    ALLOWED_HOSTS = ['*']
    DEBUG = True

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': 'cedu_test',
            'USER': 'cedu_test',
            'PASSWORD': 'LpMcs3f3D6iZNEJa',
            'HOST': '121.43.190.149',
            'PORT': '3306',
            'OPTIONS': {
                'charset': 'utf8mb4',
                "init_command": "SET foreign_key_checks = 0;",
            }
        }
    }
elif env == 'prod':
    """覆盖设置"""
    ALLOWED_HOSTS = ['127.0.0.1']
    DEBUG = False

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': 'cedu_prod',
            'USER': 'cedu_prod',
            'PASSWORD': 'TwbPZaGAB73sJ6af',
            'HOST': '121.43.190.149',
            'PORT': '3306',
            'OPTIONS': {
                'charset': 'utf8mb4',
                "init_command": "SET foreign_key_checks = 0;",
            }
        }
    }